<template>
  <div @click="handleClick">
    <slot></slot>
  </div>
</template>

<script>
export default {
    props:['list','index'],
    methods: {
        handleClick(){
            getApp().globalData.imageList = this.list;
            getApp().globalData.imageIndex = this.index;
            uni.navigateTo({ 
                 url: '/pages/pictureDetails/pictureDetails'
            });
        }
    },
};
</script>

<style>
</style>
